<?php

namespace App\Http\Request;

class BaseRequest
{

    public function __construct(array $data = [])
    {
        if (empty($data)) {
            return;
        }
        foreach ($data as $key => $value) {
            $this->$key = $value;
        }
    }

    public function toArray()
    {
        return (array)$this;
    }
}
